package org.glut.backend.service;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.glut.backend.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.glut.backend.dto.MovieOrderDTO;
import org.glut.backend.vo.OrderListVO;
import org.springframework.http.ResponseEntity;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author xiuci1412
 * @since 2025-08-07 14:26
 */
public interface IOrdersService extends IService<Orders> {


    IPage<OrderListVO> getList(Integer userId,Integer pageNo, Integer pageSize);

    ResponseEntity alipay(MovieOrderDTO movieOrderDTO, HttpServletRequest request, HttpServletResponse response);

    void nofity(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException;

    boolean deleteById(Integer id);
}